package com.liezh.adapter;

public class Main {
    public static void main(String[] args) {
        // 功能扩展
        Adapter adapter = new Adapter();
        String result = adapter.filter("abs<>");
        System.out.println(result);

        // 旧代码实现，或者其他功能实现
        TargetAbstraction target = new TargetAbstractionImpl();
        result = target.filter("abs<>");
        System.out.println(result);
    }
}
